(window["webpackJsonp"] = window["webpackJsonp"] || []).push([
	["pages-index-index"], {
		"0ade": function(t, e, a) {
			var i = a("2103");
			"string" === typeof i && (i = [
				[t.i, i, ""]
			]), i.locals && (t.exports = i.locals);
			var n = a("4f06").default;
			n("1aa9ac78", i, !0, {
				sourceMap: !1,
				shadowMode: !1
			})
		},
		"14e7": function(t, e, a) {
			"use strict";
			var i = function() {
					var t = this,
						e = t.$createElement,
						a = t._self._c || e;
					return a("v-uni-view", {
						staticClass: "content",
						staticStyle: {
							"padding-top": "30%"
						}
					}, [a("wheelDraw", {
						ref: "wheelDraw",
						attrs: {
							winIndex: t.winIndex,
							init: !0,
							prizeList: t.turnTableList,
							wh: 300,
							lightSpeed: 500
						},
						on: {
							routingBefore: function(e) {
								e = t.$handleEvent(e), t.routingBefore(e)
							},
							routingFinish: function(e) {
								e = t.$handleEvent(e), t.routingFinish(e)
							}
						}
					})], 1)
				},
				n = [];
			a.d(e, "a", function() {
				return i
			}), a.d(e, "b", function() {
				return n
			})
		},
		1692: function(t, e, a) {
			e = t.exports = a("2350")(!1), e.push([t.i,
				'@charset "UTF-8";\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.wheelDraw[data-v-4e793236]{position:relative}.wheelDraw .canvasBg[data-v-4e793236]{position:absolute}.wheelDraw .canvasCon[data-v-4e793236]{position:absolute}.wheelDraw .wheel-pointer[data-v-4e793236]{position:absolute;z-index:30;top:0;bottom:0;left:0;right:0;margin:auto;width:%?140?%;height:%?140?%;border:1px solid #e60;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.1);box-shadow:0 0 2px 2px rgba(0,0,0,.1);border-radius:50%}.wheelDraw .wheel-pointer[data-v-4e793236]:before{position:absolute;top:%?-40?%;left:50%;display:block;width:%?60?%;height:%?60?%;border:1px solid #e60;background:#fb0;content:"";-webkit-box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5);box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5);-moz-transform-origin:left top;-webkit-transform-origin:left top;-o-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-moz-transform:rotate(30deg) skewY(30deg);-webkit-transform:rotate(30deg) skewY(30deg);-o-transform:rotate(30deg) skewY(30deg);-ms-transform:rotate(30deg) skewY(30deg);transform:rotate(30deg) skewY(30deg)}.wheelDraw .wheel-pointer[data-v-4e793236]:after{position:relative;display:block;width:100%;height:100%;background:#fc0;content:"";border-radius:50%;-webkit-box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5);box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5);background:-moz-linear-gradient(-45deg,#fc0 0,#f80 50%,#fc0 100%);background:-webkit-gradient(linear,left top,right bottom,color-stop(0,#fc0),color-stop(50%,#f80),color-stop(100%,#fc0));background:-webkit-linear-gradient(-45deg,#fc0,#f80 50%,#fc0);background:-o-linear-gradient(-45deg,#fc0 0,#f80 50%,#fc0 100%);background:-ms-linear-gradient(-45deg,#fc0 0,#f80 50%,#fc0 100%);background:-o-linear-gradient(315deg,#fc0 0,#f80 50%,#fc0 100%);background:linear-gradient(135deg,#fc0,#f80 50%,#fc0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffcc00",endColorstr="#ffcc00",GradientType=1)}.wheelDraw .wheel-pointer i[data-v-4e793236]{position:absolute;z-index:35;top:%?-36?%;left:0;right:0;margin:0 auto;display:block;width:%?60?%;height:%?60?%;overflow:hidden}.wheelDraw .wheel-pointer i[data-v-4e793236]:before{display:block;width:100%;height:100%;content:"";-moz-transform-origin:left top;-webkit-transform-origin:left top;-o-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;-moz-transform:translateX(50%) rotate(30deg) skewY(30deg);-webkit-transform:translateX(50%) rotate(30deg) skewY(30deg);-o-transform:translateX(50%) rotate(30deg) skewY(30deg);-ms-transform:translateX(50%) rotate(30deg) skewY(30deg);transform:translateX(50%) rotate(30deg) skewY(30deg);background:#ffb200;background:-moz-linear-gradient(40deg,#ffb200 0,#ffb300 45%,#fed656 46%,#ff9200 90%);background:-webkit-gradient(linear,left top,right bottom,color-stop(0,#ffb200),color-stop(45%,#ffb300),color-stop(46%,#fed656),color-stop(90%,#ff9200));background:-webkit-linear-gradient(40deg,#ffb200,#ffb300 45%,#fed656 46%,#ff9200 90%);background:-o-linear-gradient(40deg,#ffb200 0,#ffb300 45%,#fed656 46%,#ff9200 90%);background:-ms-linear-gradient(40deg,#ffb200 0,#ffb300 45%,#fed656 46%,#ff9200 90%);background:linear-gradient(50deg,#ffb200,#ffb300 45%,#fed656 46%,#ff9200 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffb200",endColorstr="#ff9200",GradientType=1)}.wheelDraw .wheel-btn[data-v-4e793236]{position:absolute;z-index:40;top:0;bottom:0;left:0;right:0;margin:auto;padding:%?10?%;width:%?100?%;height:%?100?%;-webkit-box-shadow:inset 0 1px 1px rgba(255,102,0,.4),inset 0 -1px 1px rgba(255,238,0,.4);box-shadow:inset 0 1px 1px rgba(255,102,0,.4),inset 0 -1px 1px rgba(255,238,0,.4);background:-moz-linear-gradient(top,rgba(255,85,0,.7) 0,#fd0 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,85,0,.7)),color-stop(100%,#fd0));background:-webkit-linear-gradient(top,rgba(255,85,0,.7),#fd0);background:-o-linear-gradient(top,rgba(255,85,0,.7) 0,#fd0 100%);background:-ms-linear-gradient(top,rgba(255,85,0,.7) 0,#fd0 100%);background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,85,0,.7)),to(#fd0));background:linear-gradient(180deg,rgba(255,85,0,.7) 0,#fd0);border-radius:60px;z-index:240}.wheelDraw .wheel-btn strong[data-v-4e793236]{display:block;color:#fff;font-size:16px;padding-top:%?10?%;text-align:center;text-shadow:2px 0 0 #c30,-2px 0 0 #c30,0 2px 0 #c30,0 -2px 0 #c30,1px 1px 0 #c30,-1px -1px 0 #c30,-1px 1px 0 #c30,-1px -1px 0 #c30,0 2px 6px #a30}.wheelDraw .wheel-btn a[data-v-4e793236]{color:#ff0;position:relative;display:table-cell;vertical-align:middle;width:%?100?%;height:%?100?%;overflow:hidden;color:#ff0;font:700 14px/25px microsoft yahei;font-size:16px;text-align:center;text-decoration:none;border-radius:50%;-webkit-box-shadow:-1px -1px 10px hsla(0,0%,100%,.5),1px 1px 3px rgba(0,0,0,.4),inset -1px -2px 0 #a30;box-shadow:-1px -1px 10px hsla(0,0%,100%,.5),1px 1px 3px rgba(0,0,0,.4),inset -1px -2px 0 #a30;text-shadow:1px 0 0 #c30,-1px 0 0 #c30,0 1px 0 #c30,0 -1px 0 #c30,0 0 3px #fff;background:#c30;background:-moz-linear-gradient(top,#c30 0,#fd0 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#c30),color-stop(100%,#fd0));background:-webkit-linear-gradient(top,#c30,#fd0);background:-o-linear-gradient(top,#c30 0,#fd0 100%);background:-ms-linear-gradient(top,#c30 0,#fd0 100%);background:-webkit-gradient(linear,left top,left bottom,from(#c30),to(#fd0));background:linear-gradient(180deg,#c30 0,#fd0)}.wheelDraw .wheel-btn a[data-v-4e793236]:after{position:absolute;bottom:7px;right:5px;display:block;width:%?90?%;height:%?90?%;content:"";border-radius:50%;opacity:.8;background:-moz-linear-gradient(135deg,#fff 0,hsla(0,0%,100%,0) 30%);background:-webkit-gradient(linear,right bottom,left top,color-stop(0,#fff),color-stop(30%,hsla(0,0%,100%,0)));background:-webkit-linear-gradient(135deg,#fff,hsla(0,0%,100%,0) 30%);background:-o-linear-gradient(135deg,#fff 0,hsla(0,0%,100%,0) 30%);background:-ms-linear-gradient(135deg,#fff 0,hsla(0,0%,100%,0) 30%);background:linear-gradient(-45deg,#fff,hsla(0,0%,100%,0) 30%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ccffffff",endColorstr="#00ffffff",GradientType=1)}',
				""
			])
		},
		2103: function(t, e, a) {
			e = t.exports = a("2350")(!1), e.push([t.i,
				"uni-page-body[data-v-0f44723a]{background:#48d1cc}.content[data-v-0f44723a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.logo[data-v-0f44723a]{height:%?200?%;width:%?200?%;margin-top:%?200?%;margin-left:auto;margin-right:auto;margin-bottom:%?50?%}.text-area[data-v-0f44723a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.title[data-v-0f44723a]{font-size:%?36?%;color:#8f8f94}body.?%PAGE?%[data-v-0f44723a]{background:#48d1cc}",
				""
			])
		},
		3878: function(t, e, a) {
			"use strict";
			var i = function() {
					var t = this,
						e = t.$createElement,
						a = t._self._c || e;
					return a("v-uni-view", [t.prizeList.length > 0 ? a("v-uni-view", {
						staticClass: "wheelDraw",
						style: {
							width: t.wh + 30 + "px",
							height: t.wh + 30 + "px",
							margin: "0 auto"
						}
					}, [a("v-uni-canvas", {
						staticClass: "canvasBg",
						style: {
							width: t.wh + 30 + "px",
							height: t.wh + 30 + "px"
						},
						attrs: {
							"canvas-id": "canvas-bg"
						}
					}), a("v-uni-canvas", {
						staticClass: "canvasCon",
						style: {
							width: t.wh + "px",
							height: t.wh + "px",
							right: "50%",
							marginRight: -t.wh / 2 + "px",
							top: "15px",
							transform: t.transform,
							transition: "all " + t.rotatingTime + "s ease 0s"
						},
						attrs: {
							"canvas-id": "canvas-one"
						}
					}), a("v-uni-view", {
						staticClass: "wheel-pointer",
						attrs: {
							id: "pointer"
						}
					}, [a("i")]), a("v-uni-view", {
						staticClass: "wheel-btn"
					}, [a("v-uni-view", {
						attrs: {
							id: "button"
						},
						on: {
							click: function(e) {
								e = t.$handleEvent(e), t.clickButton(e)
							}
						}
					}, [a("strong", [t._v("立即"), a("br"), t._v("抽奖")])])], 1)], 1) : t._e()], 1)
				},
				n = [];
			a.d(e, "a", function() {
				return i
			}), a.d(e, "b", function() {
				return n
			})
		},
		4415: function(t, e, a) {
			"use strict";
			Object.defineProperty(e, "__esModule", {
				value: !0
			}), e.default = void 0;
			var i = n(a("6f41"));

			function n(t) {
				return t && t.__esModule ? t : {
					default: t
				}
			}
			var r = {
				data: function() {
					return {
						transform: "rotate(0deg)",
						isRotating: !1,
						lottery: null,
						numberRotations: 0,
						show: !1
					}
				},
				props: {
					subText: {
						default: "元",
						type: String
					},
					init: {
						default: !0,
						type: Boolean
					},
					winIndex: {
						default: 5,
						type: Number
					},
					rotatingTime: {
						default: 10,
						type: Number
					},
					wh: {
						default: 300,
						type: Number
					},
					colors: {
						default: function() {
							return ["#00b49b", "#fff900", "#ffbf00"]
						},
						type: Array
					},
					turns: {
						default: 10,
						type: Number
					},
					prizeList: {
						default: function() {
							for (var t = [], e = 0; e < 20; e++) t.push(e);
							return t
						},
						type: Array
					},
					lightSpeed: {
						default: 500,
						type: Number
					}
				},
				mounted: function() {
					var t = this;
					this.$nextTick(function() {
						t.init && t.drawInit()
					})
				},
				methods: {
					drawInit: function() {
						this.show = !0;
						this.Lottey = new i.default;
						var t = uni.createCanvasContext("canvas-one"),
							e = uni.createCanvasContext("canvas-bg");
						this.Lottey.init(this.colors, this.prizeList, 0, t, e, this.subText, this.lightSpeed, this.wh)
					},
					routing: function() {
						var t = this;
						if (!this.isRotating) {
							this.isRotating = !0;
							var e = this.rotatingTime,
								a = setInterval(function() {
									e > 0 ? e-- : (t.isRotating = !1, t.numberRotations++, clearInterval(a), t.$emit("routingFinish"))
								}, 1e3),
								i = this.Lottey.isRotate,
								n = 0 === this.numberRotations ? 0 : this.winIndex;
							i = i + 360 * this.turns + (this.prizeList.length - this.winIndex + n) / this.prizeList.length * 360, this.Lottey
								.isRotate = i, this.Lottey.isRotate && (this.transform = "rotate(" + this.Lottey.isRotate + "deg)")
						}
					},
					clickButton: function() {
						this.$emit("routingBefore")
					}
				}
			};
			e.default = r
		},
		"5e83": function(t, e, a) {
			"use strict";
			a.r(e);
			var i = a("4415"),
				n = a.n(i);
			for (var r in i) "default" !== r && function(t) {
				a.d(e, t, function() {
					return i[t]
				})
			}(r);
			e["default"] = n.a
		},
		"6f41": function(t, e, a) {
			"use strict";
			Object.defineProperty(e, "__esModule", {
				value: !0
			}), e.default = void 0;
			var i = function() {
				this.mytime = "", this.lamp = 0, this.w2 = "", this.h2 = "", this.w1 = "", this.h1 = "", this.itemsNum = 0,
					this.itemsArc = 0, this.color = [], this.text = [], this.isRotate = 0, this.subText = "元"
			};
			i.prototype.init = function(t, e, a, i, n, r) {
				var o = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : 500,
					s = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : 300;
				this.ctx = i, this.ctx2 = n, this.itemsNum = e.length, this.itemsArc = 360 / e.length, this.startRadian = 0,
					this.awardRadian = 2 * Math.PI / e.length, this.color = t, this.text = e, this.isRotate = a, this.getCanvasI(o,
						s), this.getCanvasII(s), this.subText = r
			}, i.prototype.getCanvasII = function(t) {
				var e = t + 30,
					a = t + 30;
				this.w2 = parseInt(e / 2), this.h2 = parseInt(a / 2), this.light()
			}, i.prototype.getCanvasI = function(t, e) {
				var a = e,
					i = e;
				this.w1 = parseInt(a / 2), this.h1 = parseInt(i / 2), this.Items(this.itemsArc), this.mytime = setInterval(this
					.light.bind(this), t)
			}, i.prototype.Items = function(t) {
				for (var e = this, a = t, i = e.itemsNum, n = (e.text, 0); n < i; n++) {
					var r = e.startRadian + e.awardRadian * n;
					e.awardRadian;
					e.ctx.beginPath(), e.ctx.moveTo(e.w1, e.h1), e.ctx.arc(e.w1, e.h1, e.w1 - 5, a * n * Math.PI / 180, (a + a * n) *
							Math.PI / 180), e.ctx.closePath(), e.ctx.fillStyle = i % 2 == 0 ? n % 2 == 0 ? e.color[0] : e.color[1] : n %
						2 == 0 && n % 3 !== 0 ? e.color[0] : n % 3 == 0 ? e.color[2] : "#ffffff", e.ctx.fill(), e.ctx.save()
				}
				for (var o = 0; o < i; o++) {
					var s = e.startRadian + e.awardRadian * o;
					e.awardRadian;
					e.ctx.beginPath(), e.ctx.font = "20px Arial", e.ctx.fillStyle = "#ff461a", e.ctx.textAlign = "center", e.ctx.textBaseline =
						"middle", e.ctx.translate(e.w1, e.h1);
					var f = i % 4 === 0 ? 1 : 0;
					i % 2 === 1 && (f = -.5), e.ctx.rotate((360 / i * o + 180 / i * f) * Math.PI / 180), e.ctx.fillText(e.text[o],
						0, -.8 * e.h1), e.ctx.font = "12px Arial", e.ctx.fillText(e.subText, 0, -.8 * (e.h1 - 20)), e.ctx.restore()
				}
				e.ctx.draw()
			}, i.prototype.light = function() {
				var t = this;
				t.itemsNum;
				t.lamp++, t.lamp >= 2 && (t.lamp = 0), t.ctx2.beginPath(), t.ctx2.arc(t.w2, t.h2, t.w2, 0, 2 * Math.PI), t.ctx2
					.fillStyle = "#FA7471", t.ctx2.fill();
				for (var e = 0; e < 2 * t.itemsNum; e++) t.ctx2.save(), t.ctx2.beginPath(), t.ctx2.translate(t.w2, t.h2), t.ctx2
					.rotate(30 * e * Math.PI / 180), t.ctx2.arc(0, t.h2 - 10, 5, 0, 2 * Math.PI), 0 == t.lamp ? t.ctx2.fillStyle =
					e % 2 == 0 ? "#FBF1A9" : "#fbb936" : t.ctx2.fillStyle = e % 2 == 0 ? "#fbb936" : "#FBF1A9", t.ctx2.fill(), t.ctx2
					.restore();
				t.ctx2.draw()
			};
			var n = i;
			e.default = n
		},
		"75e7": function(t, e, a) {
			"use strict";
			a.r(e);
			var i = a("3878"),
				n = a("5e83");
			for (var r in n) "default" !== r && function(t) {
				a.d(e, t, function() {
					return n[t]
				})
			}(r);
			a("9033");
			var o = a("2877"),
				s = Object(o["a"])(n["default"], i["a"], i["b"], !1, null, "4e793236", null);
			e["default"] = s.exports
		},
		9033: function(t, e, a) {
			"use strict";
			var i = a("aee4"),
				n = a.n(i);
			n.a
		},
		aee4: function(t, e, a) {
			var i = a("1692");
			"string" === typeof i && (i = [
				[t.i, i, ""]
			]), i.locals && (t.exports = i.locals);
			var n = a("4f06").default;
			n("ce645ef2", i, !0, {
				sourceMap: !1,
				shadowMode: !1
			})
		},
		afa3: function(t, e, a) {
			"use strict";
			var i = a("0ade"),
				n = a.n(i);
			n.a
		},
		b007: function(t, e, a) {
			"use strict";
			a.r(e);
			var i = a("efb1"),
				n = a.n(i);
			for (var r in i) "default" !== r && function(t) {
				a.d(e, t, function() {
					return i[t]
				})
			}(r);
			e["default"] = n.a
		},
		efb1: function(t, e, a) {
			"use strict";
			Object.defineProperty(e, "__esModule", {
				value: !0
			}), e.default = void 0;
			var i = n(a("75e7"));

			function n(t) {
				return t && t.__esModule ? t : {
					default: t
				}
			}
			var r = {
				components: {
					wheelDraw: i.default
				},
				data: function() {
					return {
						winIndex: 1,
						turnTableList: [100, 200, 300, 500, 600, 800]
					}
				},
				onLoad: function() {},
				methods: {
					routingBefore: function() {
						console.log("抽奖开始！"), this.$refs.wheelDraw.routing()
					},
					routingFinish: function() {
						uni.showModal({
							title: "中奖提示",
							content: "恭喜你中奖" + this.turnTableList[this.winIndex] + "元",
							success: function(t) {
								t.confirm ? console.log("用户点击确定") : t.cancel && console.log("用户点击取消")
							}
						})
					}
				}
			};
			e.default = r
		},
		fdbc: function(t, e, a) {
			"use strict";
			a.r(e);
			var i = a("14e7"),
				n = a("b007");
			for (var r in n) "default" !== r && function(t) {
				a.d(e, t, function() {
					return n[t]
				})
			}(r);
			a("afa3");
			var o = a("2877"),
				s = Object(o["a"])(n["default"], i["a"], i["b"], !1, null, "0f44723a", null);
			e["default"] = s.exports
		}
	}
]);
